package com.job.liushuang.HomeWork0714;

/**
 * @author Liushuang
 * @version 1.0
 * @since 2022-07-14 19:48:17
 */
public class Item {
    private String name;

    public Item(String name) {
        this.name = name;
    }
    public Item(){
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    protected void finalize() throws Throwable {
        System.out.println(this.name+"临终的行为：释放一些自己占用的资源 或者 我的宝藏在第三颗树下面！");
    }
}
